import mongoose from 'mongoose'

const Schema = mongoose.Schema;

const searchSchema = new Schema({
  title: { type: 'String', required: true },
  material: { type: [String], required: true },
  qualifications: { type: [String], required: true },
  date: { type: String, required: true },
  clickNum: { type: Number, required: true },
})

export default mongoose.model('documents',searchSchema);
